import request from '@/utils/request'

// 查询医保his对照列表 (分页)
export function selectPageHisVsMedical(query) {
    return request({
        url: '/msip/hisVsMedical/selectPage',
        method: 'get',
        params: query
    })
}

// 查询医保his对照列表 (不分页)
export function listHisVsMedical(query) {
    return request({
        url: '/msip/hisVsMedical/list',
        method: 'get',
        params: query
    })
}
// 查询匹配医保字典目录
export function selectYbZdDirectoryList(query) {
    return request({
        url: '/msip/hisVsMedical/selectYbZdDirectoryList',
        method: 'get',
        params: query
    })
}

// 查询医保his对照详细
export function getHisVsMedical(id) {
    return request({
        url: '/msip/hisVsMedical/' + id,
        method: 'get'
    })
}

// 取消对照
export function cancelMedComparison(hisVsMedicalId) {
    return request({
        url: '/msip/hisVsMedical/cancelMedComparison/' + hisVsMedicalId,
        method: 'get'
    })
}

// 新增医保his对照
export function addHisVsMedical(data) {
    return request({
        url: '/msip/hisVsMedical',
        method: 'post',
        data: data
    })
}

// 修改医保his对照
export function updateHisVsMedical(data) {
    return request({
        url: '/msip/hisVsMedical',
        method: 'put',
        data: data
    })
}

// 删除医保his对照
export function delHisVsMedical(id) {
    return request({
        url: '/msip/hisVsMedical/' + id,
        method: 'delete'
    })
}
